///////////////////////////////////////////////////////////////////////////////
//
//  Copyright (C) 2009. Dimarik
//
///////////////////////////////////////////////////////////////////////////////

//this._uri = new URI('gfx/images/jungle.png');
//this._uri = new URI('http://www.bandalismo.net/IMG/distant/gif/3408_1gif-040438.gif');
//this._uri = new URI('http://simoncpage.co.uk/blog/wp-content/uploads/2008/12/christmas-pixel-art-1.jpg');
//this._uri = new URI('http://s2.imgimg.de/uploads0/120790870511438bb0378png.png');
//this._uri = new URI('http://blog.turbomilk.com/images/pixel-office-large.gif');
//this._uri = new URI('http://www.dpk.com.ua/files/u4/pixel_city_part_2.png');
//this._uri = new URI('gfx/images/character/smb_mario_sheet.png');
//this._uri = new URI('gfx/images/character/mario_run.png');
//this._uri = new URI('http://www.gifandgif.eu/animated_gif/Arrows/Animated%20Gif%20Arrows%20(104).gif');
//this._uri = new URI('gfx/images/character/10-4.gif');

package
{

import com.bit101.components.Label;
import com.bit101.components.PushButton;

import flash.display.DisplayObject;
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.events.MouseEvent;
import flash.system.System;

import ru.goodcore.core.GoodCore;
import ru.goodcore.logging.ILogger;
import ru.goodcore.logging.Log;
import ru.goodcore.logging.targets.BuiltInDebugTarget;
import ru.goodcore.net.URI;
import ru.goodcore.resource.ResourceBehavior;
import ru.goodcore.resource.ResourceDefinition;
import ru.goodcore.resource.ResourceManager;
import ru.goodcore.resource.ResourceVault;
import ru.goodcore.utils.ActivityListener;
import ru.goodcore.utils.NetworkingStatus;
import ru.goodcore.utils.getNetworkingStatus;

//import flash.display.Graphics;
//import flash.display.BitmapData;
/**
 *  @author				Dimarik
 *  @version			1.1
 *  @langversion		3.0
 *  @playerversion		9.0
 * 
 */
[SWF(width="1024", height="768", frameRate="21", backgroundColor="#E0EEEE")]

public class Resurrection extends GoodCore {

	//-------------------------------------------------------------------------
	//
	//   Constructor
	//
	//-------------------------------------------------------------------------

	public function Resurrection() {
		super();
		super.stage.scaleMode = StageScaleMode.NO_SCALE;
		super.stage.align = StageAlign.TOP_LEFT;
	}

	//-------------------------------------------------------------------------
	//
	//   Private variables
	//
	//-------------------------------------------------------------------------

	/**
	 * @private
	 */	
	private var _logger:		ILogger;

	//-------------------------------------------------------------------------
	//
	//   Private methods
	//
	//-------------------------------------------------------------------------

	//-------------------------------------------------------------------------
	//
	//   Public methods
	//
	//-------------------------------------------------------------------------

	public override function creationComplete():void {
				
		var activityListener:ActivityListener = new ActivityListener();
		activityListener.x = 5;
		activityListener.y = 5;
		super.stage.addChild(activityListener);

		var target:BuiltInDebugTarget = new BuiltInDebugTarget();

		target.formatter.includeMeasuredTime = true;

		Log.addTarget(target);
		this._logger = Log.getLogger(this);

		super.stage.addChild(target);

		this._logger.info('Start session');

		GoodCore.keyboardManager.addKeyboardEventListener(KeyboardEvent.KEY_UP, target.open, false, int.MAX_VALUE, false, 68, 0, true);
	}

	//-------------------------------------------------------------------------
	//
	//   Event handlers
	//
	//-------------------------------------------------------------------------


}
}